import request from "../../utils/request";
import store from "../../store";
export const addDialog = ({
	name,
	phone,
	value,
	type,
	solutionId
}) => {
	return request({
		'url': '/solution/dialog/app',
		headers: {
			isToken: true
		},
		'method': 'Post',
		'data': {
			name,
			phone,
			msg: value,
			msgType: type,
			userId: store.getters.id,
			solutionId
		}
	})
}
export const getDialogList = ({
	pageNum,
	pageSize,
	type
}) => {
	return request({
		'url': '/solution/dialog/AppList',
		headers: {
			isToken: true
		},
		'method': 'get',
		'params': {
			pageNum,
			pageSize,
			type,
			userId: store.getters.id
		}
	})
}